/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package spa.teste;

import java.util.Date;
import javax.persistence.EntityManager;
import spa.modelo.paciente.Paciente;
import spa.persistencia.ConnectionFactory;
import spa.servico.PacienteServico;

public class testeConexao {

    public static void main(String args[]){
        EntityManager em = ConnectionFactory.getEntityManager();
        em.getTransaction().begin();
        System.out.println("conectou");

        em.close();


    }

}
